<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/jquery-3.3.1.min.js"></script>
    <script src="js/sockjs.js"></script>
    <script src="js/stomp.js"></script>


</head>
<body>

    <button class="btt">测试按钮</button>
    <div class="sss">
        <button class="btt2">测试按钮2</button>
    </div>


<script type="text/javascript">
    dateTimeFormate();
   function dateTimeFormate() {
//       $.ajax({
//           type:"OPTIONS",
//           url:"/",
//           complete:function(x){
//               alert(x.getResponseHeader("Date"))
//           }
//       });
       $.get("http://api.k780.com:88/?app=life.time&appkey=10003&sign=b59bc3ef6191eb9f747dd4e83c99f2a4&format=json",{},function (data) {
           alert(data);
       })

   }

//    var stompClient = null;
//    var socket = new SockJS('http://localhost:8080/demo/endpoint-websocket');
//    stompClient = Stomp.over(socket);
//    console.log(11122);
//    stompClient.connect({}, function (frame) {
//        alert(111);
//        console.log('Connected: ' + frame);
//        stompClient.subscribe('/mysystem/server_info', function (result) {
//            console.log(JSON.parse(result.body));
//        });
//    });
</script>

</body>
</html>